package com.tanhua.server.controller;

import com.tanhua.model.vo.HuanXinUserVo;
import com.tanhua.server.service.HuanxinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author げっしょく
 * @date 2021/10/29
 */
@RestController
@RequestMapping("/huanxin")
public class HuanxinController {

    @Autowired
    private HuanxinService huanxinService;

    //获得用户的环信账号密码
    @GetMapping("/user")
    public ResponseEntity user() {
        HuanXinUserVo huanXinUserVo = huanxinService.getUser();
        return ResponseEntity.ok(huanXinUserVo);
    }


}
